package com.rao.crm.dao.impl;

import com.rao.crm.dao.BaseDictDao;
import com.rao.crm.domain.BaseDict;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import java.util.List;

/**
 * @author Srao
 * @version 1.0
 * @className BaseDictDaoImpl
 * @date 2019/9/19 16:25
 * @package com.rao.crm.dao.impl
 * @description
 */
public class BaseDictDaoImpl extends BaseDaoImpl<BaseDict> implements BaseDictDao {
    @Override
    public List<BaseDict> findByTypeCode(String dict_type_code) {
        return (List<BaseDict>) this.getHibernateTemplate().find("from BaseDict where dict_type_code=?", dict_type_code);

    }
}
